package com.fishery.order.mapper;

import com.fishery.order.entity.Order;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.fishery.order.entity.vo.OrderVo;
import com.fishery.order.entity.vo.SaleOrderVo;
import org.apache.ibatis.annotations.Param;

import java.util.Date;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author run 、ghost
 * @since 2021-01-31
 */
public interface OrderMapper extends BaseMapper<Order> {

	/**
	 * 修改订单信息
	 *
	 * @param orderVo
	 * @return
	 */
	int updateOrderById(OrderVo orderVo);

	/**
	 * 根据基地ID、起始时间、终止时间查询售出订单信息
	 *
	 * @param baseId
	 * @param begin
	 * @param end
	 * @return
	 */
	SaleOrderVo selectSaleOrderByCondition(@Param("baseId") String baseId,
										   @Param("begin") Date begin,
										   @Param("end") Date end);

}
